<?php
/**
 * Created by PhpStorm.
 * User: 毛文科
 * Date: 2019/6/19
 * Time: 17:08
 */
namespace shortmessage\src;
use think\Db;

class Configs
{
    public function __construct($array=[])
    {
        if(!$array){
            $array = Db::name(request()->module().'_linkai')->where('status',1)
                ->find();
        }
        foreach ($array as $key=>$value){
            $this->$key = $value;
        }
        return $this;
    }
}